import request from "@/utils/request";

export function getPage(params,pageCount) {
  return request({
    url: '/course/getPage/'+pageCount,
    method: 'post',
    data:params
  })
}


export function delCourse(params) {
  return request({
    url: '/course/'+params,
    method: 'delete',
  })
}
export function showTeacher() {
  return request({
    url: '/course/getTeacher',
    method: 'get',
  })
}
export function showLevel1() {
  return request({
    url: '/course/getLevel1',
    method: 'get',
  })
}
export function showLevel2(params) {
  return request({
    url: '/course/getLevel2/'+params,
    method: 'get',
  })
}

export function saveOrupdate(params) {
  return request({
    url: '/course/saveOrupdate',
    method: 'post',
    data:params
  })
}

export function showCourse(params) {
  return request({
    url: '/course/showOne/'+params,
    method: 'post',
  })
}
export function showOver(params) {
  return request({
    url: '/course/showOver/'+params,
    method: 'post',
  })
}
export function changeStatus(params) {
  return request({
    url: '/course/status/'+params,
    method: 'post',
  })
}
